package com.ss.android.newmedia;

import android.content.Intent;
import android.view.View;
import android.view.WindowManager;

import com.ss.android.common.lib.MobClickCombiner;

import org.json.JSONException;
import org.json.JSONObject;

final class q implements Runnable {
    private final p d;
    private final Intent a;
    private final WindowManager b;
    private final View c;

    q(com.ss.android.newmedia.p arg1, Intent arg2, WindowManager arg3, View arg4) {
        this.d = arg1;
        this.a = arg2;
        this.b = arg3;
        this.c = arg4;

    }

    public final void run() {
        try {
            JSONObject v8 = new JSONObject();
            v8.put("url", this.d.a);
            MobClickCombiner.onEvent(this.d.b.getContext(), "local_http_server", "handle_open_url_oppo", -1, -1, v8);
        } catch (JSONException v0_1) {
            try {
                v0_1.printStackTrace();
            } catch (Exception v0) {
            }
        } finally {
            this.d.b.getContext().startActivity(this.a);
            this.b.removeViewImmediate(this.c);
        }

    }
}

